﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020006DB RID: 1755
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetFirstTalkNpcScRsp : IMessage<GetFirstTalkNpcScRsp>, IMessage, IEquatable<GetFirstTalkNpcScRsp>, IDeepCloneable<GetFirstTalkNpcScRsp>, IBufferMessage
	{
		// Token: 0x1700168B RID: 5771
		// (get) Token: 0x06004F09 RID: 20233 RVA: 0x000D7703 File Offset: 0x000D5903
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetFirstTalkNpcScRsp> Parser
		{
			get
			{
				return GetFirstTalkNpcScRsp._parser;
			}
		}

		// Token: 0x1700168C RID: 5772
		// (get) Token: 0x06004F0A RID: 20234 RVA: 0x000D770A File Offset: 0x000D590A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetFirstTalkNpcScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700168D RID: 5773
		// (get) Token: 0x06004F0B RID: 20235 RVA: 0x000D771C File Offset: 0x000D591C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetFirstTalkNpcScRsp.Descriptor;
			}
		}

		// Token: 0x06004F0C RID: 20236 RVA: 0x000D7723 File Offset: 0x000D5923
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFirstTalkNpcScRsp()
		{
		}

		// Token: 0x06004F0D RID: 20237 RVA: 0x000D7736 File Offset: 0x000D5936
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFirstTalkNpcScRsp(GetFirstTalkNpcScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.npcMeetStatusList_ = other.npcMeetStatusList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004F0E RID: 20238 RVA: 0x000D776C File Offset: 0x000D596C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetFirstTalkNpcScRsp Clone()
		{
			return new GetFirstTalkNpcScRsp(this);
		}

		// Token: 0x1700168E RID: 5774
		// (get) Token: 0x06004F0F RID: 20239 RVA: 0x000D7774 File Offset: 0x000D5974
		// (set) Token: 0x06004F10 RID: 20240 RVA: 0x000D777C File Offset: 0x000D597C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700168F RID: 5775
		// (get) Token: 0x06004F11 RID: 20241 RVA: 0x000D7785 File Offset: 0x000D5985
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<FirstNpcTalkInfo> NpcMeetStatusList
		{
			get
			{
				return this.npcMeetStatusList_;
			}
		}

		// Token: 0x06004F12 RID: 20242 RVA: 0x000D778D File Offset: 0x000D598D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetFirstTalkNpcScRsp);
		}

		// Token: 0x06004F13 RID: 20243 RVA: 0x000D779C File Offset: 0x000D599C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetFirstTalkNpcScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.npcMeetStatusList_.Equals(other.npcMeetStatusList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004F14 RID: 20244 RVA: 0x000D77EC File Offset: 0x000D59EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.npcMeetStatusList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004F15 RID: 20245 RVA: 0x000D7839 File Offset: 0x000D5A39
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004F16 RID: 20246 RVA: 0x000D7841 File Offset: 0x000D5A41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004F17 RID: 20247 RVA: 0x000D784C File Offset: 0x000D5A4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.Retcode);
			}
			this.npcMeetStatusList_.WriteTo(ref output, GetFirstTalkNpcScRsp._repeated_npcMeetStatusList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004F18 RID: 20248 RVA: 0x000D789C File Offset: 0x000D5A9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.npcMeetStatusList_.CalculateSize(GetFirstTalkNpcScRsp._repeated_npcMeetStatusList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004F19 RID: 20249 RVA: 0x000D78F0 File Offset: 0x000D5AF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetFirstTalkNpcScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.npcMeetStatusList_.Add(other.npcMeetStatusList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004F1A RID: 20250 RVA: 0x000D793D File Offset: 0x000D5B3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004F1B RID: 20251 RVA: 0x000D7948 File Offset: 0x000D5B48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 18U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.npcMeetStatusList_.AddEntriesFrom(ref input, GetFirstTalkNpcScRsp._repeated_npcMeetStatusList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001F19 RID: 7961
		private static readonly MessageParser<GetFirstTalkNpcScRsp> _parser = new MessageParser<GetFirstTalkNpcScRsp>(() => new GetFirstTalkNpcScRsp());

		// Token: 0x04001F1A RID: 7962
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001F1B RID: 7963
		public const int RetcodeFieldNumber = 1;

		// Token: 0x04001F1C RID: 7964
		private uint retcode_;

		// Token: 0x04001F1D RID: 7965
		public const int NpcMeetStatusListFieldNumber = 2;

		// Token: 0x04001F1E RID: 7966
		private static readonly FieldCodec<FirstNpcTalkInfo> _repeated_npcMeetStatusList_codec = FieldCodec.ForMessage<FirstNpcTalkInfo>(18U, FirstNpcTalkInfo.Parser);

		// Token: 0x04001F1F RID: 7967
		private readonly RepeatedField<FirstNpcTalkInfo> npcMeetStatusList_ = new RepeatedField<FirstNpcTalkInfo>();
	}
}
